package com.itheima.day03;
/*
案例2: for循环
        打印1--5和5--1;
 */

public class TestClassCase02 {
    public static void main(String[] args) {

        for (int i = 1; i <=5 ; i++) {
            System.out.println(i);
        }
        System.out.println("-----------------------");

        for (int i = 5; i >=1 ; i--) {
            System.out.println(i);
        }
    }
}
